package handler

import (
	"github.com/gin-gonic/gin"
	"log"
	"mwwow_service_go/model"
)

func GetYysTV(c *gin.Context) {
	var y model.YysData
	data, err := y.GetYysData()
	if err != nil {
		log.Fatalln(err)
	}
	c.JSON(200, gin.H{
		"code": 0,
		"data": data,
	})
}
